package com.yby.mall.coupon.controller;

import com.yby.common.dto.SkuFullReductionDto;
import com.yby.common.utils.R;
import com.yby.mall.coupon.service.SkuFullReductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("coupon/skuFullReduction")
public class SkuFullReductionController {
    @Autowired
    private SkuFullReductionService skuFullReductionService;

    @PostMapping("/save")
    public R saveSkuFullReduction(@RequestBody SkuFullReductionDto skuFullReductionDto){
        return skuFullReductionService.save(skuFullReductionDto);
    }

}
